﻿/***************************************************************
 * Copyright: xiaotie@gmail.com(http://xiaotie.cnblogs.com)
 * *************************************************************/
using System;
using System.Collections.Generic;
using System.Text;

using Orc.Shell.Core;

namespace Orc.Shell
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Title = "OcrShell (by xiaotie@gmail.com [blog: http://xiaotie.cnblogs.com])";

            Console.Write(">> ");
            String cmd;

            Context cxt = new Context();

            while ((cmd = Console.ReadLine().Trim()) != "exit")
            {
                if (!String.IsNullOrEmpty(cmd))
                {
                    cxt.Invoke(cmd);
                }
                Console.Write(">> ");
            }
        }
    }
}
